package com.android.kmlmrg;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;

public class TestBimap extends Activity { 
	/**LOG**/
	private static final  String LOG_TAG = TestBimap.class.getName();
	/****/
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		Log.i(LOG_TAG, "START - onCreate");
		super.onCreate(savedInstanceState);
		setContentView(R.layout.testbipmap);
		
		if(getIntent().hasExtra("byteArray")) {
		    ImageView previewThumbnail = (ImageView) this.findViewById(R.id.imageView1);
		    Bitmap b = BitmapFactory.decodeByteArray(
		        getIntent().getByteArrayExtra("byteArray"),0,getIntent().getByteArrayExtra("byteArray").length);        
		    previewThumbnail.setImageBitmap(b);
		}
	}
}
